import request from '@/utils/http';

// 查询用户接收/发布列表
export function getUserNotices(userId, params) {
  return request({
    url: `/api/user/${userId}/notices`,
    method: 'get',
    params,
  });
}
// 更新发布通知
export function operateNoticesByEventId(eventId, data) {
  return request({
    url: `/api/notices/${eventId}`,
    method: 'patch',
    data,
  });
}
// 更新接受通知
export function updateReceiveNotices(userId, eventId, data) {
  return request({
    url: `/api/notices/${userId}/${eventId}/receiver`,
    method: 'patch',
    data,
  });
}



